<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Protocol</title>
  <script>
    function go() {
      fetch('http://www.baidu.com').then(it => it.json()).then(it => console.log('json', it))
    }
  </script>
</head>
<body>
  <button onclick="go()">点击发请求</button>
  <img src="hello://img/angry.png" />
</body>

</html>